package org.mch.biz.ui;

import java.util.LinkedHashMap;
import java.util.Map;

import org.mch.swingm.core.MPanel;
import org.mch.swingm.itf.IMEvent;
import org.mch.swingm.itf.IMExtComponent;

public abstract class FuncPanel extends MPanel {
	private static final long serialVersionUID = 3273419253544321555L;
	protected Map<String, IMExtComponent> itemComp;

	private IMEvent event;

	protected void initMCH() {
		super.initMCH();
		this.itemComp = new LinkedHashMap<String, IMExtComponent>();
		this.event = createEvent();
	}

	protected abstract FuncEvent createEvent();

	public IMEvent getEvent() {
		return event;
	}

}
